package com.jc.order.constant;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class OrderConst {


    // 常量定义
    public static final Byte CORPORATE_TYPE = 2;  //企业
    public static final Byte INDIVIDUAL_TYPE = 1; //个人
    public static final Long DEFAULT_USER_ID = -1L;
    public static final String DEFAULT_BATCH_ID = "-1";
    public static final Byte STATUS_1 = (byte) 1;   //草稿
    public static final Byte STATUS_10 = (byte) 10; //退回
    public static final Byte STATUS_20 = (byte) 20; //待审核
    public static final Byte STATUS_30 = (byte) 30; //审核通过
    public static final Byte STATUS_2 = (byte) 2; //已取消
    public static final Byte STATUS_50 = (byte) 50; //已生效


    public static final BigDecimal DEFAULT_RATIO = BigDecimal.valueOf(100);
    public static final BigDecimal HUNDRED = BigDecimal.valueOf(100);
    public static final int CALCULATION_SCALE = 4;
    public static final int RESULT_SCALE = 2;
    public static final RoundingMode ROUNDING_MODE = RoundingMode.HALF_UP;


    // 保费计算
    public static final String PREMIUM_CALCULATION = "PREMIUM_CALCULATION";


    public static final String CURRENCY_CNY = "CNY";
    public static final String CURRENCY_RMB = "RMB";


    //     货值x加成比例	1
    public static final Integer INSURANCE_CONFIRM_TYPE_1 = 1;
    //     货值加运费	2
    public static final Integer INSURANCE_CONFIRM_TYPE_2 = 2;




    /**
     * 产品代码
     * <p>
     * 传统货运	1
     * 跨境大货	2
     */
    //传统货运	1
    public static final String PRODUCT_CODE_1="1";
    //跨境大货	2
    public static final String PRODUCT_CODE_2="2";
}
